
public class DonationBox {
	private int howMuchMoney;
	private String charityName;
	
	public DonationBox(String inName ) {
		howMuchMoney = 0;
		charityName = inName;
	}
	
	public void donate(int moreMoney) {
		if(moreMoney < 0) {
			return;
		}
		
		if(moreMoney > 500) {
			return;
		}
		
		howMuchMoney += moreMoney;
	}
	
	public int getHowMuchMoney() {
		return howMuchMoney;
	}
	
	public String getCharityName() {
		return charityName;
	}
}
